<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Template{
	protected $CI;
	
	function __construct() {
		$this->CI =& get_instance();
	}
	function _display($dataheader='',$view='',$dataview=''){
		if(! empty($dataheader)){
			$this->CI->load->view('template/view_header',$dataheader);
		}else{
			$this->CI->load->view('template/view_header');
		}
		$this->CI->load->view('template/view_menu');
		if(! empty($view)){
			if(! empty($dataview)){
				$this->CI->load->view($view,$dataview);
			}else{
				$this->CI->load->view($view);
			}
		}

		$this->CI->load->view('template/view_footer');
	}
}
/** End of file */